<template>
  <view class="test-container">
    <text class="title">测试跳转页面</text>
    <button class="back-btn" @click="goBack">返回分类页</button>
  </view>
</template>

<script setup>
import { ref } from 'vue';
import { onLoad } from '@dcloudio/uni-app';

// 页面加载时获取参数
onLoad((options) => {
  console.log('测试页面接收参数:', options);
});

// 返回上一页
const goBack = () => {
  uni.navigateBack({
    delta: 1
  });
};
</script>

<style scoped>
.test-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 40rpx;
}

.title {
  font-size: 36rpx;
  color: #333;
}

.back-btn {
  width: 200rpx;
  height: 80rpx;
  background-color: #007AFF;
  color: white;
  border-radius: 10rpx;
}
</style>